<!--
 * @FilePath     : /study_code/vue2.x/component_render3.html
 * @Description  : 从不同的源来渲染模板
 * @Date         : 2025-05-02 16:47:00
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-05-02 16:52:30
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="" />
  </head>
  <body>
    <div id="app">
      <table>
        <blog-post-row></blog-post-row>
        <!-- <tr is="blog-post-row"></tr> -->
      </table>
    </div>

    <script type="text/x-template" id="the-table-tr">
      <tr>
        <td>tr 内容{{ msg }}</td>
      </tr>
    </script>

    <script src="/vue/dist/vue.min.js"></script>
    <script src="./common.js"></script>
    <script>
      Vue.component('blog-post-row', {
        template: '#the-table-tr',
        data() {
          return {
            msg: 'content-string',
          }
        },
      })

      var vm = new Vue({
        el: '#app',
        data: function () {
          return {}
        },
      })
    </script>
  </body>
</html>
